home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000018_news@newsmaster….columbia.edu _Sat May 2 13:47:50 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA06393
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 2 May 1998 13:47:50 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA10815
for kermit.misc@watsun; Sat, 2 May 1998 13:47:50 -0400 (EDT)
Path: news.columbia.edu!not-for-mail
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help With File Download
Date: 2 May 1998 13:47:46 -0400
Organization: Columbia University
Lines: 62
Message-ID: <6ifm82$67l@watsun.cc.columbia.edu>
References: <6iffut$8v7@bgtnsc01.worldnet.att.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8669
In article <6iffut$8v7@bgtnsc01.worldnet.att.net>,
Bernie <bfb@worldnet.att.net> wrote:
: I'm using Kermit 6 to login to a remote PC and download
: two .zip files using the kermit protocol. It works OK for the first
: file, but then seems to hang when attempting to get the
: second.
:
: Here is an excerpt of the script:
:
: input 5 Your choice?
: output k #Select k for kermit protocol
: input 5 File name?
: output file1.zip\13
:
So evidently the PC has some kind of menu and your Kermit script is
pretending to interact with it, as you would do when your are typing
in CONNECT mode. So far so good...
: server
: get file1.zip
: get file2.zip
: bye
:
Here is where you go wrong. You are putting C-Kermit (I assume that
is what you mean by "Kermit 6" in server mode. But the remote PC is
still at its menu. So how will they communicate? Furthermore, the two
"get" commands will never be executed, since C-Kermit will remain in
server mode until commanded by the client to leave it, but there is no
client.
What to do:
1. Obtain a copy of the manual:
http://www.columbia.edu/kermit/ck60manual.html
and read the chapters on script programming.
2. Change your script as follows:
input 5 Your choice?
if fail stop 1 No protocol prompt
output k
input 5 File name?
if fail stop 1 No Filename prompt
output file1.zip\13
receive
if fail stop 1 Download of file1.zip failed
I don't know what the remote PC does after a transfer. Does it give
another "File name?" prompt? Assuming it does, the next part is:
input 5 File name?
if fail stop 1 No Filename prompt
output file2.zip\13
receive
if fail stop 1 Download of file2.zip failed
Now have your script do whatever it must do to log out, close the connection,
or whatever else you want it to do.
- Frank